package com.zjsru.payment.clients;


import com.zjsru.payment.fallback.OrderClientFallback;
import com.zjsru.payment.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;


@FeignClient(name = "order-service", fallback = OrderClientFallback.class)
public interface OrderClient {
    @PutMapping("/order/{order_Id}/pay")
    Result updateOrderStatus(@PathVariable("order_Id") Long order_Id);
}
